package com.sky.mapper;

import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.entity.Dish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 柳文迪
 */
@Mapper
public interface CategoryMapper {
    List<Category> selectPage(CategoryPageQueryDTO categoryPageQueryDTO);

    void deleteByIdCategory(Integer id);

    List<Dish> selectByIdDish(Integer id);

    void addCategory(Category cat);

    void StartupDisable(Category categoryBuilder);

    /**
     * 根据类型查询分类
     * @param type
     * @return
     */
    List<Category> list(Integer type);


}
